import moment from 'moment';
import qs from 'qs';

//json转url参数
export const parseParam = function(param, obj) {
  if (!obj || !param) {
    return param;
  }
  var paramurl = param;
  var keys = Object.keys(obj);
  if (keys.length != 0) {
    paramurl += '?' + qs.stringify(obj);
  }
  return paramurl;
};
